package com.cybertron.lockdown.spider.domain;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

/**
 * Created by xiezhouyan on 15-1-10.
 */
@XStreamAlias("parser")
public class Parser {

    @XStreamAsAttribute
    @XStreamAlias("xpath")
    private String xpath;

    @XStreamAsAttribute
    @XStreamAlias("css")
    private String css;

    @XStreamAsAttribute
    @XStreamAlias("regex")
    private String regex;

    @XStreamAsAttribute
    @XStreamAlias("exp")
    private String exp;

    public String getXpath() {
        return xpath;
    }

    public void setXpath(String xpath) {
        this.xpath = xpath;
    }

    public String getRegex() {
        return regex;
    }

    public void setRegex(String regex) {
        this.regex = regex;
    }

    public String getCss() {
        return css;
    }

    public void setCss(String css) {
        this.css = css;
    }

    public String getExp() {
        return exp;
    }

    public void setExp(String exp) {
        this.exp = exp;
    }
}
